<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/operationsinfo/operations_qd/q_operations_qd.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/operationsinfo/operations_qd/q_operations_qd.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: '合同编码',
                footer: "Foots",
                cnName: '运维服务清单',
                name: 'operations_qd/q_operations_qd',
                url: "/q_operations_qd/",
                sortName: "合同编码,运维内容编码 ASC,距离天数 ASC"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"合同编码":"","站点名称":"","应运维日期":"","距离天数":[null,null]});
            const searchFormOptions = ref([[{"title":"合同编码","field":"合同编码","type":"like"},{"title":"站点名称","field":"站点名称","type":"like"},{"title":"应运维日期","field":"应运维日期","type":"date"},{"title":"距离天数","field":"距离天数","type":"range"}]]);
            const columns = ref([{field:'合同编码',title:'合同编码',type:'string',sort:true,width:120,require:true,align:'left',sort:true},
                       {field:'站点名称',title:'站点名称',type:'string',width:220,require:true,align:'left'},
                       {field:'运维内容编码',title:'运维内容编码',type:'int',sort:true,width:120,require:true,align:'left'},
                       {field:'运维内容',title:'运维内容',type:'string',width:110,require:true,align:'left'},
                       {field:'最近运维日期',title:'最近运维日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'应运维日期',title:'应运维日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'距离天数',title:'距离天数',type:'int',sort:true,width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
